package cn.ilikes.tools.nosql.jpa.metadatas.elements;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.Index;
import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.Store;
import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.TermVector;

public final class IndexField {

	/** The name. */
	private String name;

	/** The boost. */
	private float boost = 1.0f;

	private Store store;

	private Index index;

	private TermVector termVector;

	private boolean ableIndex = false;

	public IndexField(boolean ableIndex) {
		super();
		this.ableIndex = ableIndex;
	}

	public boolean isAbleIndex() {
		return ableIndex;
	}

	public String getName() {
		return name;
	}

	public float getBoost() {
		return boost;
	}

	public void setBoost(float boost) {
		this.boost = boost;
	}

	public Store getStore() {
		return store;
	}

	public Index getIndex() {
		return index;
	}

	public TermVector getTermVector() {
		return termVector;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setStore(Store store) {
		this.store = store;
	}

	public void setIndex(Index index) {
		this.index = index;
	}

	public void setTermVector(TermVector termVector) {
		this.termVector = termVector;
	}

}